package com.xiyuan.smartutils.template.engine.expression.symbol;

/**
 * 等号原型(=)
 * 
 * @version v1.0.0 @author lgz 2020年11月1日 新建与整理
 */
public class _Equal extends Symbol
{
    private static final long serialVersionUID = 1L;
    public _Equal(String path, int line, int column)
    {
        super(path, line, column);
    }
    
    private int type = SYMBOL_EQUAL;
    public void setDouble(boolean isDouble)
    {
        this.type = isDouble ? SYMBOL_EQUAL_2 : SYMBOL_EQUAL;
    }
    
    @Override
    public int getType()
    {
        return type;
    }
    
    @Override
    public String toString()
    {
        return type == SYMBOL_EQUAL ? "=" : "==";
    }
}
